<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
          xmlns:p="http://primefaces.org/ui"  
      xmlns:f="http://java.sun.com/jsf/core">
<h:head> <meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=../index.jsf" />
<link rel="shortcut icon" href="../favicon.ico" /> <title>Sistema Integrado</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="../style.css" rel="stylesheet" type="text/css" />
<p:dock position="top" id="dock_menu" itemWidth="75" >
    <p:menuitem value="Inicio"  icon="/images/casa_final.jpg" url="../index.jsf"/>
    <p:menuitem value="Ventas"  icon="/images/ventas_final.jpg" url="../ventas.jsf"/>
    <p:menuitem value="Compras" icon="/images/compras_final.jpg" url="../compras.jsf"/>
    <p:menuitem value="Almac&eacute;n"  icon="/images/almacen_final.jpg" url="../almacen.jsf"/>
    <p:menuitem value="Finanzas"  icon="/images/finanzas_final.jpg" url="../finanzas.jsf"/>

</p:dock>
</h:head>
<h:body>
<div class="main">
  <div class="header">
    <div class="logo">
       </div>
    <div class="menu">

    </div>
  </div>
  <div class="clr"></div>
  <div class="block_header">
    <div class="slider">

        <p:dialog modal="true" widgetVar="statusDialog" header="Status" draggable="false" closable="false" resizable="false">
    <p:graphicImage value="/images/ajaxloadingbar.gif" />
</p:dialog>

        <h:form id="frmbtn">
    
    <p:panel header="Mantenimiento - BACKUPS" >



         


            <p:separator />



        <h:panelGrid id="pnlg1" columns="1" style="padding:0 10px 0 10px;width:100%;" >

            <p:fieldset id="fset1" toggleable="true" legend="CREAR BACKUP" >

                <p:commandButton
                    id="downloadLink"  ajax="false" onclick="PrimeFaces.monitorDownload(start, stop)"
        icon="ui-icon-arrowthichk-s"

        value="CREAR UN NUEVO BACKUP" action="#{managedBeanBackUp.backupDB}">
                <p:fileDownload value="#{managedBeanBackUp.file}" />
                </p:commandButton>

            </p:fieldset>

            <p:fieldset id="fset2" toggleable="true" legend="CARGAR BACKUP" >


                <p:fileUpload value="CARGAR BACKUP" auto="true"/>
            </p:fieldset>

            


        </h:panelGrid>


 




     <p:separator />
            
                <center>     <h:commandLink  action="#{managedBeanMateriaPrima.Volver_Materia}"  >
       <p:graphicImage  value="../images/inicio1.jpg" />
</h:commandLink></center>
          




    </p:panel>
</h:form>
    </div>
  </div>
  <div class="clr"></div>

  <div class="clr"></div>

  <div class="clr"></div>
</div>

</h:body>

     <script type="text/javascript">
function start() {
    statusDialog.show();
}

function stop() {
    statusDialog.hide();
}
        </script>  
</html>
